//
//  BKUserMyFavorDeleteTipView.m
//  bestkeep
//
//  Created by windCould on 16/12/2.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import "BKUserMyFavorDeleteTipView.h"
#import "BKMyCommon.h"
@interface BKUserMyFavorDeleteTipView ()

@property (nonatomic,strong)UIButton * deleteTipBtn;
@property (nonatomic,strong)UIView * spaceView;
@property (nonatomic,strong)UIButton * cancelBtn;


@end


@implementation BKUserMyFavorDeleteTipView

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        [self setUpViews];
        
    }
    
    return  self;
}

#pragma mark =========================Function==================================

-(void)deleteGoodsBtnClick
{


}

-(void)cancelDeleteGoodsBtnClick
{


}

#pragma mark =========================布局=======================================

-(void)setUpViews{
    
    _deleteTipBtn = [UIButton buttonWithType:UIButtonTypeCustom];
    _deleteTipBtn.titleLabel.font = [UIFont systemFontOfSize:17];
    [_deleteTipBtn setTitleColor:RGBCOLOR(239, 79, 79, 1) forState:UIControlStateNormal];
    [_deleteTipBtn addTarget:self action:@selector(deleteGoodsBtnClick) forControlEvents:UIControlEventTouchUpInside];
    [self addSubview:_deleteTipBtn];
    
    _spaceView = [[UIView alloc]initWithFrame:CGRectZero];
    _spaceView.backgroundColor = RGBCOLOR(242, 242, 242, 1) ;
    [self addSubview:_spaceView];
    
    _cancelBtn  = [UIButton buttonWithType:UIButtonTypeCustom];
    _cancelBtn.titleLabel.font = [UIFont systemFontOfSize:17];
    [_cancelBtn setTitleColor:RGBCOLOR(239, 79, 79, 1) forState:UIControlStateNormal];
    [_cancelBtn addTarget:self action:@selector(cancelDeleteGoodsBtnClick) forControlEvents:UIControlEventTouchUpInside];
    [self addSubview:_deleteTipBtn];
    
    [self layoutViews];
}


-(void)layoutViews{
    
    [_deleteTipBtn mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.left.equalTo(self.mas_left);
        make.right.equalTo(self.mas_right);
        make.bottom.equalTo(_spaceView.mas_top);
        make.height.equalTo(@60);
    }];
    
    [_spaceView mas_makeConstraints:^(MASConstraintMaker *make) {
      
        make.left.equalTo(self.mas_left);
        make.right.equalTo(self.mas_right);
        make.bottom.equalTo(_cancelBtn.mas_top);
        make.height.equalTo(@16);
    }];
    
    [_cancelBtn mas_makeConstraints:^(MASConstraintMaker *make) {
      
        make.left.equalTo(self.mas_left);
        make.right.equalTo(self.mas_right);
        make.bottom.equalTo(self.mas_bottom);
        make.height.equalTo(@60);
    }];
    
}



@end
